package top.lshaci.learning.fastjson;

import com.alibaba.fastjson.JSON;

import java.time.LocalDateTime;

/**
 * FastJsonTest
 *
 * @author lshaci
 * @since 1.0.0
 */
public class FastJsonTest {

    public static void main(String[] args) {
        String str = "2020-05-02 11:01:01.000";
        String json = JSON.toJSONString(str);
        System.err.println(json);
        LocalDateTime localDateTime = JSON.parseObject(json, LocalDateTime.class);
        System.err.println(localDateTime);
        String s = JSON.toJSONString(localDateTime);
        System.err.println(s);
    }
}
